<?php
namespace app\common\validate;

use think\Validate;

class  Message extends Validate{
    protected $rule = [
        'username' => 'require|max:25',
        'email' => 'email',
        'content' => 'require',
        'address' => 'require',
        'phone' => 'require',

    ];
    protected $message  =   [
        'username.require' => '名称必须',
        'username.max'     => '名称最多不能超过25个字符',
        'phone.require' => '手机号码必须',
        'email'        => '邮箱格式错误',
        'address.require' => '地址必须',
        'email.require' => '邮箱必须',
        'content.require' => '内容必须',
      
    ];
}


?>